package org.qiyu.live.user.utils;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-09-23
 * Time: 16:46
 */
public class TagInfoUtils {

    /**
     * 检查TagInfo 字段是否包含这个tag标签
     *
     * @param tagInfo  原本的tagInfo字段
     * @param matchTag 判断的标签
     * @return 返回标签是否存在
     */
    public static boolean tagMatchIng(Long tagInfo, long matchTag) {
        return tagInfo != null && matchTag > 0 && (tagInfo & matchTag) == matchTag;
    }
}